
(add-to-list 'load-path "~/.emacs.d/biubiubiu/helm/")
(require 'helm-config)
;;;this is for gtags
(add-to-list 'load-path "~/.emacs.d/biubiubiu/helm-gtags/")

(require 'helm-gtags)

;;; Enable helm-gtags-mode
(add-hook 'c-mode-hook 'helm-gtags-mode)
(add-hook 'c++-mode-hook 'helm-gtags-mode)
(add-hook 'asm-mode-hook 'helm-gtags-mode)

;; customize
(setq helm-gtags-path-style 'relative)
(setq helm-gtags-ignore-case t)
(setq helm-gtags-read-only t)
(setq helm-gtags-auto-update t)

;; key bindings
(add-hook 'helm-gtags-mode-hook
          '(lambda ()
              (local-set-key (kbd "M-t") 'helm-gtags-find-tag)
              (local-set-key (kbd "M-r") 'helm-gtags-find-rtag)
              (local-set-key (kbd "M-s") 'helm-gtags-find-symbol)
              (local-set-key (kbd "M-g M-p") 'helm-gtags-parse-file)
              (local-set-key (kbd "M-,") 'helm-gtags-pop-stack)
              (setq helm-gtags-auto-update 1)))


;; (global-set-key (kbd "C-<f7>") 'helm-find-files)
(global-set-key (kbd "C-M-<f7>") 'helm-recentf)
(global-set-key (kbd "C-<f8>") 'helm-imenu)
(global-set-key (kbd "C-x C-b") 'helm-buffers-list)
(global-set-key (kbd "C-x C-f") 'helm-find-files)
;;;ends here


(provide 'init-helm)
